import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";


// 获取角色选项
export function getjiaose(data) {
  return request({
    url: '/system/registeredUser/goToUserAuthentication',
    method: 'get',
    data: data
  })
}

export function getwenlist(roleId) {
  return request({
    url: '/system/authenticationData/getDataByRoleId/' + roleId,
    method: 'get'
  })
}
//注册
export function zhuce(data) {
  return request({
    url: '/system/registeredUser/userRegistration',
    method: 'post',
    data: data
  })
}

//认证
export function renzheng(data) {
  return request({
    url: '/system/registeredUser/userAuthentication',
    method: 'post',
    data: data
  })
}
//查询状态
export function zhungtai(data) {
  return request({
    url: '/business/registeredUser/authenticationStateCheck',
    method: 'get',
    data: data
  })
}
export function getzhucema(data) {
  return request({
    url: '/system/registeredUser/sendSmsCode',
    method: 'post',
    data: data
  })
}
export function shouquan() {
  return request({
    url: '/openplatform/enPower',
    method: 'get'
  })
}

